Kim Hung Bui
  • Home
  • Resume
  • Mathematic
  • Programming
  • English
  • Blog
Development Indicators by Continent
Gapminder Analytics Group
import plotly.express as px
df = px.data.gapminder()
GDP and Life Expectancy
px.scatter(  
  df, x="gdpPercap", y="lifeExp", 
  animation_frame="year", animation_group="country", 
  size="pop", color="continent", hover_name="country",
  facet_col="continent", log_x=True, size_max=45, 
  range_x=[100,100000], range_y=[25,90] 
)  
Population
px.area(
  df, x="year", y="pop", 
  color="continent", line_group="country"
)
Life Expectancy
px.line(
  df, x="year", y="lifeExp", 
  color="continent", line_group="country"
)